package com.yuexiang.melodyhub.common.constant.UsualConstant;

public interface BizConstant {

    // email
    String EMAIL_CODE_CACHE_PREFIX = "email:code:";

    int EMAIL_CODE_CACHE_EXPIRE_MINUTES = 5;

    int EMAIL_CODE_CACHE_EXPIRE_MS = 60 * 1000;

    // token
    String HEADER_USERNAME = "X-Username";

    String HEADER_ROLES = "X-Roles";

    String TOKEN_HEADER = "Authorization";

    String TOKEN_TYPE = "Bearer ";

    int TOKEN_CACHE_EXPIRE_HOURS = 2;

    String TOKEN_CACHE_PREFIX = "token:code:";

    // 验证码
    String CAPTCHA_KEY = "captcha";

    int CAPTCHA_EXPIRE_TIME_MINUTES = 5;

}
